$(function(){
	layui.use('layer', function(){
	})
	GetSingleOpenId(getCookie("openid")) 
	if(getCookie("mobiletokenuser")==""){
	}
	else{
		GetCurrentUserInfoForWeiXin()
	}
})
/**
 * 获取登录用户的信息
 * @returns
 */
function GetCurrentUserInfoForWeiXin(){
	var json={"userId":""+getCookie("userid")+""}
	$.ajax({
		type: "post",
		datatype: 'json',
		contentType: 'application/json;charset=UTF-8',
		url: ''+httpipstr+'alfa-mobile-ws/rest/user/GetCurrentUserInfoForWeiXin?mobiletoken='+getCookie("mobiletokenuser")+'',
		data: JSON.stringify(json),
		success: function(data) {
			if(data.message=="1"){
				$(".top").show()
				$(".main").show()
				$("#heards").attr("src",data.data.headimgurl)
				$(".people").find("h3").html(data.data.realname)
				layer.closeAll();
			}
		}
	})
}
